package com.lu.model.request;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

import javax.validation.constraints.NotEmpty;

/**
 * @Description: 审批流程查询请求
 * @Author: zhanglu
 * @Date: 2022/8/1 11:45
 */
@Data
public class ProcessApprovalQueryRequest extends PageQueryRequest {

  /**
   * 审批流程标识
   */
  @NotEmpty(message = "请输入待办类型")
  private String tableName;
  /**
   * 搜索词 - 根据 description
   */
  private String keywords;
  /**
   * @see com.lu.model.enums.YesOrNoEnum
   */
  private Integer status;
  /**
   * 业务表 对象id
   */
  private Long objId;

  /**
   * @see Type
   */
  private Integer type;

  /**
   * 用户id
   */
  private Long userId;

  @Getter
  @AllArgsConstructor
  public enum Type{

    WAIT(1, "正在审批的"),
    HANDLED(2, "审批结束的"),

    ;
    private Integer type;
    private String description;
  }

}
